$text-color: #aaa;
$black: #333;
$white: #fff;

#app {
    padding-bottom: 8rem;
}

#oaNetDisk {
    font-size: 0.8rem!important;
}

.header {
    background-color: $white;

    .header-box {
        display: flex;
        margin-bottom: 0.6rem;
        padding: 1rem 2rem;
        color: $text-color;

        .header--avatar {
            width: 4rem;
            height: 4rem;
            margin-right: 1rem;

            img {
                width: 100%;
                height: 100%;
                border-radius: 50%;
            }
        }

        .header--info-name {
            font-size: 110%;
            color: $black;
            white-space: nowrap;
            .header--info-name-username {
                max-width: 10rem;
                display: inline-block;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .header--info-name-gcname {
                font-size: 1rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                max-width: 18rem;
                color: #5d5def;
                display: inline-block;
            }
        }
    }

}

.info {
    background-color: $white;

    .info-box {
        margin-bottom: 0.6rem;
        padding: 2rem;
        color: $text-color;
        line-height: 3rem;

        &:empty {
            display: none;
        }
    }

    .info--parts-title {
        display: flex;
        align-items: center;
        color: $black;

        .info--parts-title-text {
            flex: 1;
        }

        .info--item-edit {
            color: #aaa;
        }
    }

    .info--item {
        display: flex;
        line-height: 2rem;

        &.hide {
            display: none;
        }

        &:not(:first-of-type) {
            margin-top: 1.4rem;
        }

        .info--item-title {
            display: flex;
            // align-items: center;
            max-width: 49%;
            min-width: 8rem;
            margin-right: 1rem;
            color: #999;
        }

        .info--item-desc {
            display: flex;
            align-items: center;
            flex: 1;
            color: $black;
            word-break: break-all;

            img {
                width: 5rem;
                height: 5rem;
                margin: 0 0.4rem 0.4rem 0;
                border-radius: 0.4rem;
                vertical-align: top;
            }

            a {
                display: block;
                // color: $purple;
                text-decoration: underline;
            }

            &.edited {
                color: $green;
            }
        }

        .info--item-desc-input {
            display: flex;
            align-items: center;
            width: 100%;
            margin-top: 0.6rem;
            border: none;
            border-bottom: 1px solid #ccc;
            font-size: inherit;
            line-height: 1.6rem;
        }

        .info--item-edit {
            i {
                padding: 0 0.5rem;
                line-height: inherit;
            }
        }

        .info--item-desc-box {
            figure {
                float: left;
                margin: 0;
            }
        }
    }

    .info--parts {
        margin: 1rem 0;
        padding: 1rem 2rem;
        border-radius: 4px;
        background-color: #f4f5f7;

        &.hide {
            display: none;
        }
    }

    .info--item-desc-netdisk {
        float: left;
        width: 5rem;
        height: 7rem;
        margin: 0 0.5rem 0.5rem 0;

        p {
            margin: 0;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
}

.process {
    background-color: $white;

    .process-box {
        padding: 3rem 2rem;
        color: $text-color;
        margin-bottom: 0.6rem;
    }

    .process--item {
        display: flex;
        position: relative;
        padding-bottom: 3rem;

        &.now .process--item-avatar::before {
            content: '';
            position: absolute;
            z-index: 2;
            top: 0;
            left: -0.4rem;
            bottom: 0;
            width: 6px;
            height: 6px;
            margin: auto;
            border-radius: 50%;
            background-color: $green;
        }

        &::after {
            content: '';
            position: absolute;
            z-index: 0;
            top: 0;
            left: 3rem;
            width: 0;
            height: 100%;
            border-right: 1px solid #ddd;
        }

        &.item-end {
            padding-bottom: 0;

            .process--item-avatar span {
                display: inline-block;
                width: 3rem;
                height: 3rem;
                border-radius: 50%;
                background-color: #a8a8a8;
                color: #fff;
                line-height: 3rem;
                font-size: 1rem;
                text-align: center;
            }

            &::after {
                content: none;
            }
        }
    }

    .process--item-avatar {
        position: relative;
        z-index: 1;
        width: 6rem;
        height: 6rem;
        margin-right: 1rem;
        padding: 1rem;
        background-color: $white;
        text-align: center;

        img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }
    }

    .process--item-desc {
        overflow: hidden;
        flex: 1;
        margin-top: 0.6rem;

        .process--item-desc-box {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: top;

            .fa-angle-right {
                margin: 0 0.6rem;
                line-height: inherit;
                transition: linear .1s;
                transform: rotate(0);
            }

            .process--item-desc--append {
                width: 100%;
                margin-top: 1rem;
                padding: .4rem .8rem;
                background-color: #f4f5f7;
                word-break: break-all;
            }

            .commenting {
                color: $dark;
                font-size: 2rem;

                i {
                    font-size: inherit;
                }
            }

            &.on {
                .fa-angle-right {
                    transform: rotate(90deg);
                }
            }
        }
    }


    .process--item-desc--title {
        color: $black;
        font-size: 120%;
    }

    .process--item-desc--time {
        font-size: 80%;
    }

    .process--item-desc--name {
        width: 100%;
        overflow: hidden;
    }

    .process--item-desc--status {
        flex: 1;
        width: 100%;
        padding-left: 1rem;
        font-size: 80%;
        text-align: right;
        word-break: keep-all;
    }

    .process--item-desc--name--detail {
        margin: 0.4rem 0 0 2rem;
    }
}

.opera {
    padding: 2rem;

    .opera-box {
        display: flex;
        background-color: $white;
        justify-content: space-between;
        border-radius: 4px;
    }

    .opera--item {
        width: 100%;
        height: 4rem;
        line-height: 4rem;
        text-align: center;
    }
}

.tabbar {
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    max-width: var(--max-width);
    margin: auto;

    .tabbar-box {
        display: flex;
        justify-content: space-between;
    }
}

.reply {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: 0.15s linear;
    background-color: rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;

    &.on {
        visibility: visible;
        opacity: 1;

        .reply-box {
            bottom: 0;
            transition: bottom 0.2s linear;
        }
    }

    .reply-box {
        display: flex;
        position: absolute;
        z-index: 10;
        bottom: -6rem;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 600px;
        max-width: var(--max-width);
        margin: auto;
    }

    .reply-text {
        width: 300%;
        padding: 0 1rem;
        border: none;
        border-radius: 0;
        font-size: 1.4rem;
    }

}

.complain-text {
    width: 100%;
    height: 18rem;
    border: none;
    line-height: 3rem;
    font-size: 1.3rem;
    padding: 0.5rem 0;
    resize: none;
}

.warning-text {
    background-color: #fff;

    .warning-text-box {
        padding: 1rem 2rem;
    }
}

.stamp {
    position: absolute;
    z-index: 1;
    top: 1rem;
    right: 2rem;
    width: 7rem;
    height: 7rem;

    img {
        width: 100%;
    }
}

.pswp__button--share,
.pswp__button--fs {
    display: none!important;
}


/* 手写签名 */
.sign-dialog-box {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #fff;
    display: none;
    /* transform: rotate(90deg); */
    .sign-dialog {
        position: absolute; 
        height: 100%;
        top: 0;
        left: 0;
        .-tablet.flex {
            position: absolute;
        }
    }
    &.on {
        display: block;
    }
    .sign-tools-box {
        position: absolute;
        width: calc(100% + 10rem);
        bottom: 45%;
        font-size: 1.6rem;
        padding: .5rem 2rem;
        background: #fff;
        border-bottom: 1px solid #eee;
        z-index: 10001;
        left: calc(50% - 7rem + 2px);
        transform: rotate(90deg);
        .sign-tools {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 3rem;
            .sign-tips {
                color: #5d5def;
            }
            .sign-tools-item {
                color: #fff;
                background: #5d5def;
                border-radius: 50%;
                padding: .9rem .5rem;
                font-size: 1rem;
                margin-left: 1.5rem;
            }
            // .sign-tools-item.sign-cancel {
            //     color: #999;
            // }
            // .sign-tools-item.sign-confirm {
            //     color: #5d5def;
            // }
            // .sign-tools-item.sign-clear {
            //     color: dodgerblue;
            // }
        }
    }
}
